class Anagrafiche::ContattiController  < DefaultController
  require_role self.parent_name.underscore
  active_scaffold :contatto do |config|
    config.label = Application.controller_label(self)
    list.sorting = {:name => 'ASC'}
    config.subform.layout = :vertical
    fields = [ :name, :ruolo, :telefono, :fax, :cellulare, :mail ]
    config.columns = fields
    config.columns[:name].label = "Nome"
    fields.each { |i| config.columns[i].inplace_edit = :ajax }
  end
end
